﻿@model Demo.Model.EntityModels.Person

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Demo</legend>
        @Html.HiddenFor(model => model.id)
		
        
		<div class="editor-label">
            @Html.LabelFor(model => model.name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name)
            @Html.ValidationMessageFor(model => model.name)
        </div>
	
		<p>
            <input type="submit" value="Save" />
        </p>
	</fieldset>
}

<div>
    @Html.ActionLink("Back to List", "List")
</div>
